Skip to content

Gate op compatibility on dskernels and ROCm support - #9150

Merged
hwchen2017 merged 4 commits into
masterfrom
hongwei/op_check
Nov 23, 2026
Merged

hwchen2017 merged 4 commits into
masterfrom
hongwei/op_check

Conversation

@hwchen2017

Copy link
Copy Markdown
Contributor

Changes

  • deepspeed-kernels check (op_builder/ragged_ops.py, op_builder/inference_cutlass_builder.py): is_compatible() returns False with "requires dskernels, please pip install deepspeed-kernels" when dskernels cannot be imported.
  • ROCm gate (op_builder/builder.py): new CUDAOpBuilder.ROCM_SUPPORTED (default True), checked first in is_compatible() next to MIN_COMPUTE_CAPABILITY. It is False for inference_core_ops, cutlass_ops, ragged_device_ops, evoformer_attn and gds. Builders that override is_compatible() now call super() first, so ROCm is reported instead of a missing dependency, and the CUTLASS search and cuFile probe don't run on ROCm. gds already rejected ROCm; it now also records the reason for JIT loads. The now-unreachable ROCm branch in evoformer_attn's extra_ldflags() is removed.
  • Transformer op on ROCm (csrc/includes/context.h): the default GEMM algos were hardcoded to 99, the CUDA value of CUBLAS_GEMM_DEFAULT_TENSOR_OP, which is not a valid hipBLAS algo. They now use the named constant, which hipify maps to HIPBLAS_GEMM_DEFAULT. No change on CUDA.
  • Tests: tests/unit/ops/test_op_builder.py checks that the five ops are rejected on ROCm with ROCm given as the reason, and that fused_adam is not. The inference v2 kernel tests (tests/unit/inference/v2/kernels/{ragged_ops,cutlass_ops,core_ops}) now skip at module level via deepspeed.ops.__compatible_ops__ when their op is unavailable, instead of failing.

Issues

Solves the ModuleNotFoundError: No module named 'dskernels' install failure reported in #4669, #4658, #4761, #4914, #6465, #6625, #7144 (closed), and in #7276 and #7570.

Related:

Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T22:24:29.831973Z 61037da PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@auto-pr-labeler-with-jev auto-pr-labeler-with-jev Bot added the skip-gpu-test Requires positive evidence that every changed behavior can be validated without a GPU. label Nov 22, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61037da13c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@delock

delock commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

@hwchen2017 looks good for this PR. One open question. Is dskernels still used? I thought it isn't used any more.

@hwchen2017

Copy link
Copy Markdown
Contributor Author

@delock It's only used in inference v2.

@hwchen2017
hwchen2017 added this pull request to the merge queue Nov 23, 2026
Merged via the queue into master with commit cfd9e7a Nov 23, 2026
24 of 28 checks passed
@hwchen2017
hwchen2017 deleted the hongwei/op_check branch November 23, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-gpu-test Requires positive evidence that every changed behavior can be validated without a GPU.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants